import babel from 'rollup-plugin-babel';
import resolve from '@rollup/plugin-node-resolve';

export default {
  input: './src/index.js',
  output: [
    {
      file: './dist/index.es.js',
      format: 'es'
    },
    {
      file: './dist/index.js',
      format: 'umd',
      name: 'vueTinyStore'
    },
  ],
  external: ['vue'],
  plugins: [
    resolve({
      extensions: ['.js']
    }),
    babel({
      exclude: '**/node_modules/**',
      runtimeHelpers: true
    })
  ]
}
